package cn.tedu.property_management_system.entity.dto;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class MeterSO implements Serializable {
    private Long  id;
    /**
     * 门牌号
     */
    private String  houseNumber;
    /**
     * 类型
     */
    private String  expenseType;
    /**
     * 上次度数
     */
    private Long  lastDegree;
    /**
     * 本次度数
     */
    private Long currentDegree;
    /**
     * 抄表时间
     */
    @JsonSerialize(using = LocalDateTimeSerializer.class)//序列化
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)//反序列化
    private LocalDateTime meterReadingTime;
    /**
     * 登记时间
     */
    @JsonSerialize(using = LocalDateTimeSerializer.class)//序列化
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)//反序列化
    private LocalDateTime registrationTime;
    /**
     * 抄表员
     */
    private String  meterReader;

    private String remarks;


    private Integer houseId;

    private String room;


    private Integer userId;

    private String username;

    private String password;




}
